<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class User_controller</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> User_controller</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
		<p class="notes">
			Located in <a class="field" href="_controllers---user_controller.php.html">/controllers/user_controller.php</a> (line <span class="field"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a7">7</a></span>)
		</p>
		
				
		<pre>Controller
   |
   --User_controller</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																								<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">User_controller</span>
										<a href="#User_controller" title="details" class="method-name">User_controller</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#Activate" title="details" class="method-name">Activate</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#email_check" title="details" class="method-name">email_check</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#Login" title="details" class="method-name">Login</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#Logout" title="details" class="method-name">Logout</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#RecommendNewUser" title="details" class="method-name">RecommendNewUser</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#Register" title="details" class="method-name">Register</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#ResetPassword" title="details" class="method-name">ResetPassword</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$UserID</span> = <span class="var-default">''</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">''</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#username_check" title="details" class="method-name">username_check</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodUser_controller" id="User_controller"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor User_controller</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a9">9</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">User_controller</span>
		<span class="method-name">
			User_controller
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodActivate" id="Activate"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">Activate</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a338">338</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function: Activate  This function will catch the third section of the uri  and activate the user who has that activationcode.</p>
<p class="description"><p>Will redirect the klient to the homepage if the uri is'nt  valid.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Activate
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodemail_check" id="email_check"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">email_check</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a304">304</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function: email_check  This function is part of the register validation. It will stop any  registration with an email that already exist</p>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			email_check
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span>			</li>
				</ul>
		
			
	</div>
<a name="methodLogin" id="Login"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">Login</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a153">153</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Login
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodLogout" id="Logout"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">Logout</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a176">176</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Logout
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodRecommendNewUser" id="RecommendNewUser"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">RecommendNewUser</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a356">356</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will send an recommendation email  to the emailadress in the inputfield.</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			RecommendNewUser
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodRegister" id="Register"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">Register</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a187">187</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function: Register</p>
<p class="description"><p>Description: Will show the user/register.php view and  catch the formvalues if the submit button is clicked.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Register
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodResetPassword" id="ResetPassword"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">ResetPassword</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a28">28</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function: Reset password</p>
<p class="description"><p>Description: Will begin the process to reset password.  An email will be sent with a confirmation-code first.</p><p>If $UserID and $code is sent then confirm code and  create a new password.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ResetPassword
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$UserID</span> = <span class="var-default">''</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$UserID</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$code</span>			</li>
				</ul>
		
			
	</div>
<a name="methodusername_check" id="username_check"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">username_check</span> (line <span class="line-number"><a href="../__filesource/fsource_phpDocumentor__controllersuser_controller.php.html#a321">321</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Function: username_check  This function is part of the register validation. It will stop any  registration with an username that already exist</p>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			username_check
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Wed, 01 Dec 2010 09:14:00 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>